﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Domain.Pocos
{
    [Table("office")]
    public class Office
    {
        public int officeId { get; set; }
        public string name { get; set; }
        public DateTime createDate { get; set; }
        public DateTime updateDate { get; set; }

        public virtual ICollection<Department> departmentList { get; set; }
    }

    public class Course
    {
        [Key]
        public int courseID { get; set; }
        public string title { get; set; }
    }

    [Table("OnsiteCourse")]
    public class OnsiteCourse : Course
    {
        public OnsiteCourse()
        {
            details = new Details();
        }

        public Details details { get; set; }
    }

    [ComplexType]
    public class Details
    {
        public System.DateTime time { get; set; }
        public string location { get; set; }
        public string days { get; set; }
        public string test { get; set; }
    }
}